extends Resource

class_name ScheduleData

@export var schedule_id:String

@export var schedule_date:String

@export var is_finished:bool

@export var is_delayed:bool = false

@export var schedule_title:String

@export var related_task:String

@export var related_subtask_seqno:int

@export var length:int

@export var progress:int = 0

@export var actual_length:int

@export var working_period:int

@export var related_files:Array[String]

func init(scheduleId:String, scheduleDate:String, isFinished:bool, scheduleTitle:String, relatedTaskID:String, \
	relatedSubtaskSeqno:int, lengthVal:int, actualLength:int, workingPeriod:int, relatedFiles:Array[String]):
		schedule_id = scheduleId
		schedule_date = scheduleDate
		is_finished = isFinished
		schedule_title = scheduleTitle
		related_task = relatedTaskID
		related_subtask_seqno = relatedSubtaskSeqno
		length = lengthVal
		actual_length = actualLength
		working_period = workingPeriod
		related_files = relatedFiles

